<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const socket = new WebSocket('ws://localhost:6041/rest/ws')
    socket.addEventListener('open', (e) => {
        console.log(e);
    })
    function sendBinaryData() {

    }
</script>
</body>
</html>